package com.gzz.mybatis.common.conditices.section;

import java.util.function.Consumer;

/**
 * @author higmd
 */
public interface INested<Param, Children>{
    default Children and(Consumer<Param> consumer) {
        return this.and(true, consumer);
    }

    Children and(boolean condition, Consumer<Param> consumer);

    default Children or(Consumer<Param> consumer) {
        return this.or(true, consumer);
    }

    Children or(boolean condition, Consumer<Param> consumer);

}
